/*------------------------------------------------------------------------------
 * Copyright 2012 NCR Corporation
 *------------------------------------------------------------------------------
 * All revision information is updated automatically from source code control
 * change records - please do not manually edit.
 *------------------------------------------------------------------------------
 *
 *  $LastChangedRevision:: 1588                                     $
 *  $LastChangedBy:: rb250096                                       $
 *  $LastChangedDate:: 2012-02-22 08:20:46 -0500 (Wed, 22 Feb 2012) $
 */

package com.ncr.nep.dashboardcore.modularization.client;

/**
 * Handler invoked when a SplitPoint has finished loading the code into the
 * application.
 *
 * @author rb250096
 * @version $Revision: 1588 $
 */
public interface SplitPointLoadedHandler {

    /**
     * Called when the root object is loaded from the code split.
     *
     * @param loadedObject The loaded object.
     */
    void onSuccess(Object loadedObject);

    /**
     * Called when a failure occurs during the load operation.
     *
     * @param throwable The error that occurred during the load.
     */
    void onFailure(Throwable throwable);
}
